import { request } from '@umijs/max';

export async function UserList(data: any) {
  return request('/user/list', {
    method: 'POST',
    data,
  });
}

export async function UserView(data: any) {
  return request('/user/view', {
    method: 'POST',
    data,
  });
}

export async function UserCreate(data: any) {
  return request('/user/add', {
    method: 'POST',
    data,
  });
}

export async function UserUpdate(data: any) {
  return request('/user/update', {
    method: 'POST',
    data,
  });
}

export async function UserDelete(data: any) {
  return request('/user/del', {
    method: 'POST',
    data,
  });
}
